package com.easy.sso.exception;

import com.easy.common.exception.ExceptionEnum;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-04-20 15:07
 **/

public class JwtException extends RuntimeException {
    private ExceptionEnum exception;

    public JwtException(ExceptionEnum exception) {
        this.exception = exception;
    }

    public JwtException(String message, ExceptionEnum exception) {
        super(message);
        this.exception = exception;
    }

    public ExceptionEnum getException() {
        return exception;
    }

    public void setException(ExceptionEnum exception) {
        this.exception = exception;
    }
}
